aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets_src/js/user.js3
-rw-r--r--views/pages/user.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/assets_src/js/user.js b/assets_src/js/user.js
index c697780..fb3ab7c 100644
--- a/assets_src/js/user.js
+++ b/assets_src/js/user.js
@@ -3,12 +3,11 @@ import * as dom from './lib/dom';
3function externalServiceClick(e) { 3function externalServiceClick(e) {
4 var row = dom.closest(e.target, (el) => el.classList.contains('authorizable')); 4 var row = dom.closest(e.target, (el) => el.classList.contains('authorizable'));
5 if (row === null) { 5 if (row === null) {
6 alert('nada');
7 return; 6 return;
8 } 7 }
9 var authType = row.getAttribute('data-auth-type'), 8 var authType = row.getAttribute('data-auth-type'),
10 authUrl = row.getAttribute('data-auth-url'), 9 authUrl = row.getAttribute('data-auth-url'),
11 coupleUrl = row.getAttribute('data-couple-url'); 10 coupleUrl = row.getAttribute('data-couple-url');
12 switch (authType) { 11 switch (authType) {
13 case 'copy-paste': 12 case 'copy-paste':
14 window.open(authUrl); 13 window.open(authUrl);
diff --git a/views/pages/user.html b/views/pages/user.html
index e654d96..3c9d145 100644
--- a/views/pages/user.html
+++ b/views/pages/user.html
@@ -23,7 +23,7 @@
23 {{ $model := . }} 23 {{ $model := . }}
24 {{ range .DisplayUser.ExternalServices }} 24 {{ range .DisplayUser.ExternalServices }}
25 {{ if (or .IsEnabled $isCurrentUser) }} 25 {{ if (or .IsEnabled $isCurrentUser) }}
26 <a href="#" {{ if not .IsEnabled }} data-auth-type="{{ .AuthType }}" data-auth-url="{{ .AuthorizeURL }}" data-couple-url="{{ .CoupleURL }}" {{ end }} class="collection-item {{ if not .IsEnabled }} authorizable {{ end }}"> 26 <a href="{{ if and .IsEnabled .ProfileLink }}{{ .ProfileLink }}{{ else }}#{{ end }}" {{ if not .IsEnabled }} data-auth-type="{{ .AuthType }}" data-auth-url="{{ .AuthorizeURL }}" data-couple-url="{{ .CoupleURL }}" {{ end }} class="collection-item {{ if not .IsEnabled }} authorizable {{ end }}">
27 <span class="badge {{ if not .IsEnabled }} new no-caption {{ end }}"> 27 <span class="badge {{ if not .IsEnabled }} new no-caption {{ end }}">
28 {{ if not .IsEnabled }} 28 {{ if not .IsEnabled }}
29 Hinzufügen! 29 Hinzufügen!