nodebb-theme-harmony 2.0.0-pre.19 → 2.0.0-pre.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.0.0-pre.19",
3
+ "version": "2.0.0-pre.20",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-theme-harmony",
9
- "version": "2.0.0-pre.19",
9
+ "version": "2.0.0-pre.20",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@fontsource/inter": "5.0.15",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.0.0-pre.19",
3
+ "version": "2.0.0-pre.20",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -67,10 +67,14 @@
67
67
 
68
68
  {{{ if (loggedIn && (!isSelf && !banned)) }}}
69
69
  <hr class="w-100 my-2"/>
70
- <a href="#" component="account/flag" class="btn-ghost-sm ff-secondary">
70
+ <a {{{if flagId }}}hidden{{{end}}} href="#" component="account/flag" class="btn-ghost-sm ff-secondary">
71
71
  <i class="flex-shrink-0 fa-solid fa-flag text-danger"></i>
72
72
  <div class="flex-grow-1 text-nowrap">[[user:flag-profile]]</div>
73
73
  </a>
74
+ <a {{{if !flagId }}}hidden{{{end}}} href="#" component="account/already-flagged" class="btn-ghost-sm ff-secondary" data-flag-id="{flagId}">
75
+ <i class="flex-shrink-0 fa-solid fa-flag text-danger"></i>
76
+ <div class="flex-grow-1 text-nowrap">[[user:profile-flagged]]</div>
77
+ </a>
74
78
  <a href="#" component="account/block" class="btn-ghost-sm ff-secondary {{{ if isBlocked }}}hidden{{{ end }}}">
75
79
  <i class="flex-shrink-0 fa-solid fa-ban text-danger"></i>
76
80
  <div class="flex-grow-1 text-nowrap">[[user:block-user]]</div>
@@ -116,7 +116,7 @@
116
116
  <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flag" role="menuitem" href="#"><i class="fa fa-fw text-secondary fa-flag"></i> [[topic:flag-post]]</a>
117
117
  </li>
118
118
  <li {{{ if !posts.flags.flagged }}}hidden{{{ end }}} class="disabled text-secondary">
119
- <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/already-flagged" role="menuitem" href="#"><i class="fa fa-fw text-secondary fa-flag"></i> [[topic:already-flagged]]</a>
119
+ <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/already-flagged" role="menuitem" href="#" data-flag-id="{posts.flagId}"><i class="fa fa-fw text-secondary fa-flag"></i> [[topic:already-flagged]]</a>
120
120
  </li>
121
121
 
122
122
  {{{ if (!posts.selfPost && posts.uid) }}}