summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-14 21:30:19 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit3a02101e668d6bc1a05d6c6b35708e97d22a104f (patch)
treeb82e3076e3d7b7b23134c7f501d917833da7c941 /templates
parentf7820fffd06c85e765cba8350bf79e54da7982c0 (diff)
♻️ ShareController: refactor dictionary + fncts
- updated dictionary structure to contain share status - divided code into functions - adapted code to match new implementation Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index a239cf5de..bde264f2e 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -133,7 +133,7 @@
ng-click="Share.shareItem(item.id, user.value.shareWith)">
{{ user.label }}
<span class="right" style="margin-top: 0.9em; margin-right: 1em"
- ng-class="{'icon-loading-small': App.loading.isLoading(user.value.shareWith), 'icon-checkmark': !App.loading.isLoading(user.value.shareWith) && Share.usersSharedArticles[item.id].includes(user.value.shareWith)}">
+ ng-class="{'icon-loading-small': Share.isLoading(user.value.shareWith), 'icon-checkmark': Share.isSuccessful(item.id, user.value.shareWith)}">
</span>
</a>