mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-06-12 17:34:27 +02:00
Fix log toast
This commit is contained in:
@@ -114,8 +114,8 @@ export const plugin: PluginDefinition = {
|
|||||||
{
|
{
|
||||||
label: 'Toggle Debug Logs',
|
label: 'Toggle Debug Logs',
|
||||||
async onSelect(ctx) {
|
async onSelect(ctx) {
|
||||||
const enableLogs = await ctx.store.get('enable_logs');
|
const enableLogs = !(await ctx.store.get('enable_logs'));
|
||||||
await ctx.store.set('enable_logs', !enableLogs);
|
await ctx.store.set('enable_logs', enableLogs);
|
||||||
await ctx.toast.show({
|
await ctx.toast.show({
|
||||||
message: `Debug logs ${enableLogs ? 'enabled' : 'disabled'}`,
|
message: `Debug logs ${enableLogs ? 'enabled' : 'disabled'}`,
|
||||||
color: 'info',
|
color: 'info',
|
||||||
|
|||||||
Reference in New Issue
Block a user