Skip to content

Commit

Permalink
fix: property info edit permission (#DEV-3601), property form control…
Browse files Browse the repository at this point in the history
…s ux improvement (#DEV-3595) (#1575)
  • Loading branch information
irmastnt committed May 15, 2024
1 parent 0f46425 commit 595a958
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</div>
<div
class="action-bubble"
*ngIf="lastModificationDate && projectStatus && showActionBubble"
*ngIf="userCanEdit && lastModificationDate && projectStatus && showActionBubble"
[@simpleFadeAnimation]="'in'">
<div class="button-container">
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { PropertyForm } from '../property-form.type';

@Component({
selector: 'app-property-form',
styles: ['.toggles { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px;}'],
template: ` <form [formGroup]="form">
<mat-form-field style="width: 100%">
<span matPrefix>
Expand Down Expand Up @@ -37,10 +38,6 @@ import { PropertyForm } from '../property-form.type';
[formArray]="form.controls.labels"
data-cy="label-input"
placeholder="Property label*"></dasch-swiss-multi-language-input>
<dasch-swiss-multi-language-textarea
[formArray]="form.controls.comments"
data-cy="comment-textarea"
placeholder="Comment"></dasch-swiss-multi-language-textarea>
<app-gui-attr-list
*ngIf="formData.property.propType.objectType === Constants.ListValue"
Expand All @@ -50,7 +47,7 @@ import { PropertyForm } from '../property-form.type';
*ngIf="formData.property.propType.objectType === Constants.LinkValue"
[control]="form.controls.guiAttr"></app-gui-attr-link>
<div style="display: flex; justify-content: center; gap: 16px">
<div class="toggles">
<app-multiple-slide-toggle
[control]="form.controls.cardinality"
data-cy="multiple-toggle"
Expand All @@ -63,6 +60,11 @@ import { PropertyForm } from '../property-form.type';
[label]="'Required value ?'"
(afterCardinalityChange)="form.controls.cardinality.patchValue($event)"></app-required-slide-toggle>
</div>
<dasch-swiss-multi-language-textarea
[formArray]="form.controls.comments"
data-cy="comment-textarea"
placeholder="Comment"></dasch-swiss-multi-language-textarea>
</form>`,
})
export class PropertyFormComponent implements OnInit {
Expand Down

0 comments on commit 595a958

Please sign in to comment.