added context menu for future sharing

This commit is contained in:
booploops 2022-01-27 23:29:33 -08:00
parent a0ac3712ea
commit 1fa02ad99b
2 changed files with 23 additions and 5 deletions

View file

@ -3373,7 +3373,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
position: fixed;
top: 0;
left: 0;
z-index: 100;
z-index: 1001;
display: flex;
justify-content: center;
align-items: center;

View file

@ -109,7 +109,7 @@
<button class="md-btn" :disabled="!$root.cfg.audio.equalizer.userGenerated" style="width:100%" @click="deletePreset()">Delete Preset</button>
</div>
<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>
@ -230,8 +230,26 @@
mounted() {
},
methods: {
sharePreset() {
notyf.error("Not implemented")
sharePreset(event) {
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() {
let presets = this.$root.cfg.audio.equalizer.presets