add a default action to a setting: for text click

This commit is contained in:
geoffrey45
2023-01-03 19:56:08 +03:00
committed by Mungai Njoroge
parent c1fb05e2a0
commit 6d84283efd
5 changed files with 16 additions and 3 deletions
+6 -1
View File
@@ -10,7 +10,12 @@
:key="index"
:class="{ inactive: setting.inactive && setting.inactive() }"
>
<div class="title ellip" @click="setting.action()">
<div
class="title ellip"
@click="
setting.defaultAction ? setting.defaultAction() : setting.action()
"
>
{{ setting.title }}
</div>
<div class="options">