diff --git a/src/lang/da.ts b/src/lang/da.ts index b69dbb5..f56465e 100644 --- a/src/lang/da.ts +++ b/src/lang/da.ts @@ -67,14 +67,14 @@ export default { required: 'Farve er påkrævet', red: 'Rød', orange: 'Orange', - amber: 'Amber', + amber: 'Rav', yellow: 'Gul', lime: 'Lime', green: 'Grøn', - emerald: 'Emerald', + emerald: 'Smaragd', teal: 'Blågrøn', cyan: 'Cyan', - sky: 'Sky', + sky: 'Himmelblå', blue: 'Blå', indigo: 'Indigo', violet: 'Violet', diff --git a/src/lib/items/files.ts b/src/lib/items/files.ts index 339f766..daff778 100644 --- a/src/lib/items/files.ts +++ b/src/lib/items/files.ts @@ -45,7 +45,9 @@ export class FileClass extends ItemClass { throw new Error(await response.text()); } - return new FileClass(await response.json()); + this.name = input.name; + + return this; } async delete() { diff --git a/src/lib/items/items.ts b/src/lib/items/items.ts index 29d1b7d..b371378 100644 --- a/src/lib/items/items.ts +++ b/src/lib/items/items.ts @@ -35,6 +35,10 @@ export abstract class ItemClass { return this._name; } + protected set name(value: string) { + this._name = value; + } + get mimeType() { return this._mimeType; }