All files / app/mods/org save.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21117x     117x                                  
import { DateTime } from 'luxon';
import { Mod } from '../../model/tag';
 
export const saveMod: Mod = {
  plugin: [{
    tag: 'plugin/user/save',
    name: $localize`⭕️️ Save to list`,
    config: {
      version: 2,
      generated: $localize`Generated by jasper-ui ${DateTime.now().toISO()}`,
      description: $localize`Mark Refs as saved for the current user`,
      icons: [{ response: 'plugin/user/save', label: $localize`⭕️️`, global: true, order: -1 }],
      filters: [
        { user: 'plugin/user/save', label: $localize`⭕️️ saved`, title: $localize`My saved Refs`, group: $localize`Lists ☰` },
      ],
      actions: [{ response: 'plugin/user/save', labelOff: $localize`save`, global: true }],
      advancedActions: [{ response: 'plugin/user/save', labelOn: $localize`unsave`, global: true }],
    },
  }],
};