nodebb-plugin-composer-default 10.2.41 → 10.2.43
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.json
CHANGED
package/static/lib/composer.js
CHANGED
|
@@ -473,6 +473,8 @@ define('composer', [
|
|
|
473
473
|
isEditing: isEditing,
|
|
474
474
|
canSchedule: !!(isMain && privileges &&
|
|
475
475
|
((privileges['topics:schedule'] && !isEditing) || (isScheduled && privileges.view_scheduled))),
|
|
476
|
+
canUploadImage: app.user.privileges['upload:post:image'] && (config.maximumFileSize > 0 || app.user.isAdmin),
|
|
477
|
+
canUploadFile: app.user.privileges['upload:post:file'] && (config.maximumFileSize > 0 || app.user.isAdmin),
|
|
476
478
|
showHandleInput: config.allowGuestHandles &&
|
|
477
479
|
(app.user.uid === 0 || (isEditing && isGuestPost && app.user.isAdmin)),
|
|
478
480
|
handle: postData ? postData.handle || '' : undefined,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
{{{ end }}}
|
|
38
38
|
{{{ end }}}
|
|
39
39
|
|
|
40
|
-
{{{ if
|
|
40
|
+
{{{ if canUploadImage }}}
|
|
41
41
|
<li title="[[modules:composer.upload-picture]]">
|
|
42
42
|
<button data-format="picture" class="img-upload-btn btn btn-sm btn-link text-reset" aria-label="[[modules:composer.upload-picture]]">
|
|
43
43
|
<i class="fa fa-file-image-o"></i>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</li>
|
|
46
46
|
{{{ end }}}
|
|
47
47
|
|
|
48
|
-
{{{ if
|
|
48
|
+
{{{ if canUploadFile }}}
|
|
49
49
|
<li title="[[modules:composer.upload-file]]">
|
|
50
50
|
<button data-format="upload" class="file-upload-btn btn btn-sm btn-link text-reset" aria-label="[[modules:composer.upload-file]]">
|
|
51
51
|
<i class="fa fa-file-o"></i>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
[[tags:select-tags]]
|
|
7
7
|
</button>
|
|
8
8
|
|
|
9
|
-
<ul class="dropdown-menu" role="menu">
|
|
10
|
-
|
|
11
|
-
<li data-tag="{@value}"><a class="dropdown-item" href="#" role="menuitem">{@value}</a></li>
|
|
12
|
-
|
|
9
|
+
<ul class="dropdown-menu p-1" role="menu">
|
|
10
|
+
{{{ each tagWhitelist }}}
|
|
11
|
+
<li data-tag="{@value}"><a class="dropdown-item rounded-1" href="#" role="menuitem">{@value}</a></li>
|
|
12
|
+
{{{ end }}}
|
|
13
13
|
</ul>
|
|
14
14
|
</div>
|
|
15
15
|
<input class="tags" type="text" class="" placeholder="[[tags:enter-tags-here, {minimumTagLength}, {maximumTagLength}]]" />
|