Grammalecte  Check-in [1990296330]

Overview
Comment:[fx] set community dictionary as soon as it is created
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | comdic
Files: files | file ages | folders
SHA3-256: 1990296330745f02cfdc54502e5f3e87f0cd2288a7908d1a53a679e4ade1f710
User & Date: olr on 2019-02-05 12:55:26
Other Links: branch diff | manifest | tags
Context
2019-02-05
17:03
[fx] lexicon editor: save dictionary online (draft) check-in: 13b87972a8 user: olr tags: fx, comdic
12:55
[fx] set community dictionary as soon as it is created check-in: 1990296330 user: olr tags: fx, comdic
12:24
[fx] remember dictionaries selection check-in: 0ee518126e user: olr tags: fx, comdic
Changes

Modified gc_lang/fr/webext/panel/dictionaries.js from [12fe2c5719] to [f9a15fdf35].

303
304
305
306
307
308
309

310
311
312
313
314
315
        for (let sName of this.dSelectedDictionaries.keys()) {
            lDict.push(this.dDict.get(sName));
        }
        let oDict = dic_merger.merge(lDict, "S", "fr", "Français", "fr.community", "Dictionnaire communautaire (personnalisé)", this.xProgressBar);
        console.log(oDict);
        browser.storage.local.set({ "community_dictionary": oDict });
        browser.storage.local.set({ "selected_dictionaries_list": Array.from(this.dSelectedDictionaries.keys()) });

    }
}

const oDicTable = new Table("dictionaries_table", ["Nom", "Entrées", "Description", "Date"], "wait_progress", "num_dic", false, true);

oDicTable.init();







>






303
304
305
306
307
308
309
310
311
312
313
314
315
316
        for (let sName of this.dSelectedDictionaries.keys()) {
            lDict.push(this.dDict.get(sName));
        }
        let oDict = dic_merger.merge(lDict, "S", "fr", "Français", "fr.community", "Dictionnaire communautaire (personnalisé)", this.xProgressBar);
        console.log(oDict);
        browser.storage.local.set({ "community_dictionary": oDict });
        browser.storage.local.set({ "selected_dictionaries_list": Array.from(this.dSelectedDictionaries.keys()) });
        browser.runtime.sendMessage({ sCommand: "setDictionary", dParam: {sDictionary: "community", oDict: oDict}, dInfo: {} });
    }
}

const oDicTable = new Table("dictionaries_table", ["Nom", "Entrées", "Description", "Date"], "wait_progress", "num_dic", false, true);

oDicTable.init();