nodebb-plugin-composer-default 10.0.46 → 10.0.48
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
|
@@ -131,6 +131,10 @@ define('composer', [
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
function push(post) {
|
|
134
|
+
if (!post) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
134
138
|
var uuid = utils.generateUUID();
|
|
135
139
|
var existingUUID = alreadyOpen(post);
|
|
136
140
|
|
|
@@ -460,6 +464,7 @@ define('composer', [
|
|
|
460
464
|
maximumPostLength: config.maximumPostLength,
|
|
461
465
|
minimumTagLength: config.minimumTagLength,
|
|
462
466
|
maximumTagLength: config.maximumTagLength,
|
|
467
|
+
'composer:showHelpTab': config['composer:showHelpTab'],
|
|
463
468
|
isTopic: isTopic,
|
|
464
469
|
isEditing: isEditing,
|
|
465
470
|
canSchedule: !!(isMain && privileges &&
|
|
@@ -43,10 +43,12 @@
|
|
|
43
43
|
<span class="d-none d-md-inline show-text">[[modules:composer.show_preview]]</span>
|
|
44
44
|
<span class="d-none d-md-inline hide-text">[[modules:composer.hide_preview]]</span>
|
|
45
45
|
</button>
|
|
46
|
+
{{{ if composer:showHelpTab }}}
|
|
46
47
|
<button class="btn btn-sm btn-link py-2 text-body fw-semibold text-nowrap" data-action="help">
|
|
47
48
|
<i class="fa fa-question"></i>
|
|
48
49
|
<span class="d-none d-md-inline">[[modules:composer.help]]</span>
|
|
49
50
|
</button>
|
|
51
|
+
{{{ end }}}
|
|
50
52
|
</div>
|
|
51
53
|
</div>
|
|
52
54
|
|