mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
Add tooltip and fix no name
This commit is contained in:
parent
c92cbfd394
commit
0c59b84324
@ -907,7 +907,7 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
<div class="app-icon-box">
|
<div class="app-icon-box">
|
||||||
<mwc-icon class="menuIcon">add</mwc-icon>
|
<mwc-icon class="menuIcon">add</mwc-icon>
|
||||||
</div>
|
</div>
|
||||||
<span class="text">${translate("tabmenu.tm19")}</span>
|
<span class="text" title="${translate("tabmenu.tm19")}">${translate("tabmenu.tm19")}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1025,17 +1025,16 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addToMyMenuPlugins() {
|
async addToMyMenuPlugins() {
|
||||||
this.mwcIcon = ''
|
|
||||||
this.pluginType = this.shadowRoot.getElementById("pluginTypeInput").value
|
this.pluginType = this.shadowRoot.getElementById("pluginTypeInput").value
|
||||||
this.pluginName = this.shadowRoot.getElementById('pluginNameInput').value
|
|
||||||
|
|
||||||
var oldMenuPlugs = JSON.parse(localStorage.getItem("myMenuPlugs") || "[]")
|
|
||||||
|
|
||||||
if (this.pluginType === "reject") {
|
if (this.pluginType === "reject") {
|
||||||
let myplugerr = get("tabmenu.tm25")
|
let myplugerr = get("tabmenu.tm25")
|
||||||
parentEpml.request('showSnackBar', `${myplugerr}`)
|
parentEpml.request('showSnackBar', `${myplugerr}`)
|
||||||
return false
|
return false
|
||||||
} else if (this.pluginType === "0") {
|
} else if (this.pluginType === "0") {
|
||||||
|
this.mwcIcon = ''
|
||||||
|
this.pluginName = this.shadowRoot.getElementById('pluginNameInput').value
|
||||||
|
|
||||||
if (this.pluginName === "Q-Blog") {
|
if (this.pluginName === "Q-Blog") {
|
||||||
this.mwcIcon = 'rss_feed'
|
this.mwcIcon = 'rss_feed'
|
||||||
} else if (this.pluginName === "Q-Mail") {
|
} else if (this.pluginName === "Q-Mail") {
|
||||||
@ -1044,6 +1043,8 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
this.mwcIcon = 'apps'
|
this.mwcIcon = 'apps'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var oldMenuPlugs = JSON.parse(localStorage.getItem("myMenuPlugs") || "[]")
|
||||||
|
|
||||||
const newMenuPlugsItem = {
|
const newMenuPlugsItem = {
|
||||||
"url": "myapp",
|
"url": "myapp",
|
||||||
"domain": "core",
|
"domain": "core",
|
||||||
@ -1056,7 +1057,7 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const validatePluginName = async () => {
|
const validatePluginName = async () => {
|
||||||
if (this.pluginName.length === 0) {
|
if (this.pluginType === "0" && this.pluginName.length == 0) {
|
||||||
let myplugstring1 = get("walletpage.wchange50")
|
let myplugstring1 = get("walletpage.wchange50")
|
||||||
parentEpml.request('showSnackBar', `${myplugstring1}`)
|
parentEpml.request('showSnackBar', `${myplugstring1}`)
|
||||||
return false
|
return false
|
||||||
@ -1071,7 +1072,7 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
this.myPluginNameRes = res
|
this.myPluginNameRes = res
|
||||||
})
|
})
|
||||||
|
|
||||||
if (this.myPluginNameRes === undefined || this.myPluginNameRes.length == 0 ) {
|
if (this.myPluginNameRes === undefined || this.myPluginNameRes.length == 0) {
|
||||||
myPluginName = false
|
myPluginName = false
|
||||||
} else {
|
} else {
|
||||||
myPluginName = true
|
myPluginName = true
|
||||||
@ -1099,8 +1100,13 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
} else if (this.pluginType === "1") {
|
} else if (this.pluginType === "1") {
|
||||||
|
this.mwcIcon = ''
|
||||||
|
this.pluginName = this.shadowRoot.getElementById('pluginNameInput').value
|
||||||
|
|
||||||
this.mwcIcon = 'web'
|
this.mwcIcon = 'web'
|
||||||
|
|
||||||
|
var oldMenuPlugs = JSON.parse(localStorage.getItem("myMenuPlugs") || "[]")
|
||||||
|
|
||||||
const newMenuPlugsItem = {
|
const newMenuPlugsItem = {
|
||||||
"url": "myapp",
|
"url": "myapp",
|
||||||
"domain": "core",
|
"domain": "core",
|
||||||
@ -1113,7 +1119,7 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const validatePluginName = async () => {
|
const validatePluginName = async () => {
|
||||||
if (this.pluginName.length === 0) {
|
if (this.pluginType === "1" && this.pluginName.length == 0) {
|
||||||
let myplugstring1 = get("walletpage.wchange50")
|
let myplugstring1 = get("walletpage.wchange50")
|
||||||
parentEpml.request('showSnackBar', `${myplugstring1}`)
|
parentEpml.request('showSnackBar', `${myplugstring1}`)
|
||||||
return false
|
return false
|
||||||
@ -1205,7 +1211,7 @@ class NavBar extends connect(store)(LitElement) {
|
|||||||
renderRemoveIcon(appurl, appicon, appname, appplugin) {
|
renderRemoveIcon(appurl, appicon, appname, appplugin) {
|
||||||
if (appurl === 'myapp') {
|
if (appurl === 'myapp') {
|
||||||
return html`
|
return html`
|
||||||
<div class="removeIconPos" @click="${() => this.openRemoveApp(appname)}">
|
<div class="removeIconPos" title="${translate('tabmenu.tm22')}" @click="${() => this.openRemoveApp(appname)}">
|
||||||
<mwc-icon class="removeIcon">backspace</mwc-icon>
|
<mwc-icon class="removeIcon">backspace</mwc-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="menuIconPos" @click="${() => this.changePage(appplugin)}">
|
<div class="menuIconPos" @click="${() => this.changePage(appplugin)}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user