Skip to content

Commit

Permalink
#16 - Made changes according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikpyt authored and kristianbinau committed Oct 9, 2023
1 parent eccc5aa commit c4f2072
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lang/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 3 additions & 1 deletion src/lib/items/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/items/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export abstract class ItemClass {
return this._name;
}

protected set name(value: string) {
this._name = value;
}

get mimeType() {
return this._mimeType;
}
Expand Down

0 comments on commit c4f2072

Please sign in to comment.