fix: no-widgets messaging in ACP + copy

v1.18.x
Julian Lam 5 years ago
parent 346db0d84d
commit 334be11382

@ -1,7 +1,7 @@
{ {
"available": "Available Widgets", "available": "Available Widgets",
"explanation": "Select a widget from the dropdown menu and then drag and drop it into a template's widget area on the left.", "explanation": "Select a widget from the dropdown menu and then drag and drop it into a template's widget area on the left.",
"none-installed": "No widgets found! Activate the essential widgets plugin in the <a href=\"%1\">plugins</a> control panel.", "none-installed": "No widgets found! Activate the widget essentials plugin in the <a href=\"%1\">plugins</a> control panel.",
"clone-from": "Clone widgets from", "clone-from": "Clone widgets from",
"containers.available": "Available Containers", "containers.available": "Available Containers",
"containers.explanation": "Drag and drop on top of any active widget", "containers.explanation": "Drag and drop on top of any active widget",

@ -33,7 +33,7 @@
<div class="available-widgets"> <div class="available-widgets">
<p>[[admin/extend/widgets:explanation]]</p> <p>[[admin/extend/widgets:explanation]]</p>
<!-- IF !availableWidgets.length --> <!-- IF !availableWidgets.length -->
<div class="alert alert-info">[[none-installed, {config.relative_path}/admin/extend/plugins]]</div> <div class="alert alert-info">[[admin/extend/widgets:none-installed, {config.relative_path}/admin/extend/plugins]]</div>
<!-- ENDIF !availableWidgets.length --> <!-- ENDIF !availableWidgets.length -->
<p> <p>
<select id="widget-selector" class="form-control"> <select id="widget-selector" class="form-control">

@ -66,7 +66,7 @@ describe('Read API', async () => {
await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid }); await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid });
await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid }); await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid });
// wait for export child process to complete // wait for export child process to complete
await wait(20000); // await wait(20000);
// Attach a search hook so /api/search is enabled // Attach a search hook so /api/search is enabled
plugins.registerHook('core', { plugins.registerHook('core', {

Loading…
Cancel
Save