Show buttons for adding tags and importing

This commit is contained in:
Robin van der Linde 2022-07-18 16:08:41 +02:00
parent 512282772a
commit 63bb1a4da3
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
2 changed files with 19 additions and 0 deletions

View file

@ -42,6 +42,13 @@ export default class TagApplyButton implements AutoAction {
public static generateTagsToApply(spec: string, tagSource: Store<any>): Store<Tag[]> {
// Check whether we need to look up a single value
if (!spec.includes(";") && !spec.includes("=") && spec.includes("$")){
// We seem to be dealing with a single value, fetch it
spec = tagSource.data[spec.replace("$","")]
}
const tgsSpec = spec.split(";").map(spec => {
const kv = spec.split("=").map(s => s.trim());
if (kv.length != 2) {