Compare commits
1 Commits
pr/dontAss
...
wip/dontAs
Author | SHA1 | Date | |
---|---|---|---|
e36da973d4 |
@@ -870,7 +870,7 @@ function hostAction(settings, action, params = {}) {
|
|||||||
async function parseFields(settings, login) {
|
async function parseFields(settings, login) {
|
||||||
var response = await hostAction(settings, "fetch", {
|
var response = await hostAction(settings, "fetch", {
|
||||||
storeId: login.store.id,
|
storeId: login.store.id,
|
||||||
file: login.login + ".gpg",
|
file: login.loginPath,
|
||||||
});
|
});
|
||||||
if (response.status != "ok") {
|
if (response.status != "ok") {
|
||||||
throw new Error(JSON.stringify(response)); // TODO handle host error
|
throw new Error(JSON.stringify(response)); // TODO handle host error
|
||||||
|
@@ -87,10 +87,14 @@ function prepareLogins(files, settings) {
|
|||||||
for (let storeId in files) {
|
for (let storeId in files) {
|
||||||
for (let key in files[storeId]) {
|
for (let key in files[storeId]) {
|
||||||
// set login fields
|
// set login fields
|
||||||
|
const loginPath = files[storeId][key];
|
||||||
|
const lastDot = loginPath.lastIndexOf(".");
|
||||||
|
const loginName = lastDot < 0 ? loginPath : loginPath.substr(0, lastDot);
|
||||||
const login = {
|
const login = {
|
||||||
index: index++,
|
index: index++,
|
||||||
store: settings.stores[storeId],
|
store: settings.stores[storeId],
|
||||||
login: files[storeId][key].replace(/\.gpg$/i, ""),
|
login: loginName,
|
||||||
|
loginPath: loginPath,
|
||||||
allowFill: true,
|
allowFill: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user