kmsVaultConfig = false;
s3VaultConfig = false;
tags: Record<string, string>[] = [];
+ dirtyTags = false;
tagConfig = [
{
attribute: 'key'
deleteTag(index: number) {
this.tags.splice(index, 1);
+ this.dirtyTags = true;
this.bucketForm.markAsDirty();
this.bucketForm.updateValueAndValidity();
}
} else {
this.tags.push(tag);
}
+ this.dirtyTags = true;
this.bucketForm.markAsDirty();
this.bucketForm.updateValueAndValidity();
}
private tagsToXML(tags: Record<string, string>[]): string {
+ if (!this.dirtyTags && tags.length === 0) return '';
let xml = '<Tagging><TagSet>';
for (const tag of tags) {
xml += '<Tag>';