add some more dialog icons
This commit is contained in:
parent
1d9fa2a42e
commit
b27218a1e3
|
@ -640,6 +640,7 @@ const CommonDialogs = {
|
||||||
onclick='window.open("https://tt-rss.org/wiki/GeneratedFeeds")'>
|
onclick='window.open("https://tt-rss.org/wiki/GeneratedFeeds")'>
|
||||||
<i class='material-icons'>help</i> ${__("More info...")}</button>
|
<i class='material-icons'>help</i> ${__("More info...")}</button>
|
||||||
<button dojoType='dijit.form.Button' onclick="return App.dialogOf(this).regenFeedKey('${feed}', '${is_cat}')">
|
<button dojoType='dijit.form.Button' onclick="return App.dialogOf(this).regenFeedKey('${feed}', '${is_cat}')">
|
||||||
|
${App.FormFields.icon("refresh")}
|
||||||
${__('Generate new URL')}
|
${__('Generate new URL')}
|
||||||
</button>
|
</button>
|
||||||
<button dojoType='dijit.form.Button' class='alt-primary' type='submit'>
|
<button dojoType='dijit.form.Button' class='alt-primary' type='submit'>
|
||||||
|
|
|
@ -205,9 +205,9 @@ const Helpers = {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
${App.FormFields.button_tag(__('Remove selected profiles'), "",
|
${App.FormFields.button_tag(App.FormFields.icon("delete") + " " +__('Remove selected profiles'), "",
|
||||||
{class: 'pull-left alt-danger', onclick: 'App.dialogOf(this).removeSelected()'})}
|
{class: 'pull-left alt-danger', onclick: 'App.dialogOf(this).removeSelected()'})}
|
||||||
${App.FormFields.submit_tag(__('Activate profile'), {onclick: 'App.dialogOf(this).execute()'})}
|
${App.FormFields.submit_tag(App.FormFields.icon("check") + " " + __('Activate profile'), {onclick: 'App.dialogOf(this).execute()'})}
|
||||||
${App.FormFields.cancel_dialog_tag(__('Cancel'))}
|
${App.FormFields.cancel_dialog_tag(__('Cancel'))}
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
|
@ -276,9 +276,11 @@ const Helpers = {
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<button dojoType='dijit.form.Button' class='alt-success' onclick="App.dialogOf(this).apply()">
|
<button dojoType='dijit.form.Button' class='alt-success' onclick="App.dialogOf(this).apply()">
|
||||||
|
${App.FormFields.icon("check")}
|
||||||
${__('Apply')}
|
${__('Apply')}
|
||||||
</button>
|
</button>
|
||||||
<button dojoType='dijit.form.Button' class='alt-primary' type='submit'>
|
<button dojoType='dijit.form.Button' class='alt-primary' type='submit'>
|
||||||
|
${App.FormFields.icon("refresh")}
|
||||||
${__('Save and reload')}
|
${__('Save and reload')}
|
||||||
</button>
|
</button>
|
||||||
<button dojoType='dijit.form.Button' onclick="App.dialogOf(this).hide()">
|
<button dojoType='dijit.form.Button' onclick="App.dialogOf(this).hide()">
|
||||||
|
@ -529,7 +531,9 @@ const Helpers = {
|
||||||
|
|
||||||
container.innerHTML += `
|
container.innerHTML += `
|
||||||
<li data-row-value="${App.escapeHtml(plugin.name)}" class="${is_installed ? "plugin-installed" : ""}">
|
<li data-row-value="${App.escapeHtml(plugin.name)}" class="${is_installed ? "plugin-installed" : ""}">
|
||||||
${App.FormFields.button_tag(is_installed ? __("Already installed") : __('Install'), "", {class: 'alt-primary pull-right',
|
${App.FormFields.button_tag((is_installed ?
|
||||||
|
App.FormFields.icon("check") + " " +__("Already installed") :
|
||||||
|
App.FormFields.icon("file_download") + " " +__('Install')), "", {class: 'alt-primary pull-right',
|
||||||
disabled: is_installed,
|
disabled: is_installed,
|
||||||
onclick: `App.dialogOf(this).performInstall("${App.escapeHtml(plugin.name)}")`})}
|
onclick: `App.dialogOf(this).performInstall("${App.escapeHtml(plugin.name)}")`})}
|
||||||
|
|
||||||
|
@ -574,7 +578,7 @@ const Helpers = {
|
||||||
<ul style='clear : both' class="panel panel-scrollable-400px contents plugin-installer-list"> </ul>
|
<ul style='clear : both' class="panel panel-scrollable-400px contents plugin-installer-list"> </ul>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
${App.FormFields.button_tag(__("Refresh"), "", {class: 'alt-primary', onclick: 'App.dialogOf(this).reload()'})}
|
${App.FormFields.button_tag(App.FormFields.icon("refresh") + " " +__("Refresh"), "", {class: 'alt-primary', onclick: 'App.dialogOf(this).reload()'})}
|
||||||
${App.FormFields.cancel_dialog_tag(__("Close"))}
|
${App.FormFields.cancel_dialog_tag(__("Close"))}
|
||||||
</footer>
|
</footer>
|
||||||
`,
|
`,
|
||||||
|
@ -646,7 +650,7 @@ const Helpers = {
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
${App.FormFields.button_tag(__("Update"), "", {disabled: true, class: "update-btn alt-primary", onclick: "App.dialogOf(this).performUpdate()"})}
|
${App.FormFields.button_tag(App.FormFields.icon("update") + " " + __("Update"), "", {disabled: true, class: "update-btn alt-primary", onclick: "App.dialogOf(this).performUpdate()"})}
|
||||||
${App.FormFields.cancel_dialog_tag(__("Close"))}
|
${App.FormFields.cancel_dialog_tag(__("Close"))}
|
||||||
</footer>
|
</footer>
|
||||||
`,
|
`,
|
||||||
|
@ -798,6 +802,7 @@ const Helpers = {
|
||||||
</section>
|
</section>
|
||||||
<footer class='text-center'>
|
<footer class='text-center'>
|
||||||
<button dojoType='dijit.form.Button' onclick="return App.dialogOf(this).regenOPMLKey()">
|
<button dojoType='dijit.form.Button' onclick="return App.dialogOf(this).regenOPMLKey()">
|
||||||
|
${App.FormFields.icon("refresh")}
|
||||||
${__('Generate new URL')}
|
${__('Generate new URL')}
|
||||||
</button>
|
</button>
|
||||||
<button dojoType='dijit.form.Button' type='submit' class='alt-primary'>
|
<button dojoType='dijit.form.Button' type='submit' class='alt-primary'>
|
||||||
|
|
Loading…
Reference in New Issue