added context menu for future sharing
This commit is contained in:
parent
a0ac3712ea
commit
1fa02ad99b
2 changed files with 23 additions and 5 deletions
|
@ -3373,7 +3373,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 100;
|
z-index: 1001;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
<button class="md-btn" :disabled="!$root.cfg.audio.equalizer.userGenerated" style="width:100%" @click="deletePreset()">Delete Preset</button>
|
<button class="md-btn" :disabled="!$root.cfg.audio.equalizer.userGenerated" style="width:100%" @click="deletePreset()">Delete Preset</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<button class="md-btn" :disabled="!$root.cfg.audio.equalizer.userGenerated" style="width:100%" @click="sharePreset()">Share</button>
|
<button class="md-btn" :disabled="!$root.cfg.audio.equalizer.userGenerated" style="width:100%" @click="sharePreset($event)">Share...</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -230,8 +230,26 @@
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sharePreset() {
|
sharePreset(event) {
|
||||||
notyf.error("Not implemented")
|
let menu = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
"icon": "./assets/feather/share.svg",
|
||||||
|
"name": app.getLz('action.import'),
|
||||||
|
"action": function () {
|
||||||
|
notyf.error("Not implemented yet")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon": "./assets/feather/share.svg",
|
||||||
|
"name": app.getLz('action.export'),
|
||||||
|
"action": function () {
|
||||||
|
notyf.error("Not implemented yet")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
app.showMenuPanel(menu, event)
|
||||||
},
|
},
|
||||||
deletePreset() {
|
deletePreset() {
|
||||||
let presets = this.$root.cfg.audio.equalizer.presets
|
let presets = this.$root.cfg.audio.equalizer.presets
|
||||||
|
@ -273,7 +291,7 @@
|
||||||
'preamp': 0,
|
'preamp': 0,
|
||||||
'mix': 1,
|
'mix': 1,
|
||||||
})
|
})
|
||||||
if(app.cfg.audio.equalizer.userGenerated) {
|
if (app.cfg.audio.equalizer.userGenerated) {
|
||||||
this.saveSelectedPreset()
|
this.saveSelectedPreset()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue