Skip to content
Snippets Groups Projects
Commit 116bfbea authored by rhenck's avatar rhenck
Browse files

Remove underlinable property for text elements

This function will be implemented differently.
parent cbae70fb
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ import { TextElement } from '../models/text-element';
template: `
<div [style.width.%]="100"
[style.height]="'auto'">
<div *ngIf="elementModel.highlightable || elementModel.underlinable"
<div *ngIf="elementModel.highlightable"
class="marking-bar">
<ng-container *ngIf="elementModel.highlightable">
<button class="marking-button" mat-mini-fab [style.background-color]="'yellow'"
......@@ -25,12 +25,6 @@ import { TextElement } from '../models/text-element';
<mat-icon>border_color</mat-icon>
</button>
</ng-container>
<ng-container *ngIf="elementModel.underlinable">
<button class="marking-button" mat-mini-fab [style.background-color]="'white'"
(click)="onMarkingButtonClick($event, { mode: 'underline', color: 'black', element: container })">
<mat-icon>format_underlined</mat-icon>
</button>
</ng-container>
<button class="marking-button" [style.background-color]="'lightgrey'" mat-mini-fab
(click)="onMarkingButtonClick($event, { mode: 'delete', color: 'none', element: container })">
<mat-icon>clear</mat-icon>
......
......@@ -5,7 +5,6 @@ import { initSurfaceElement } from '../util/unit-interface-initializer';
export class TextElement extends UIElement implements SurfaceUIElement {
text: string = '<p>Lorem ipsum dolor sit amet</p>';
highlightable: boolean = false;
underlinable: boolean = false;
fontColor: string = 'black';
font: string = 'Roboto';
lineHeight: number = 120;
......
......@@ -43,11 +43,6 @@
(change)="updateModel('highlightable', $event.checked)">
{{'propertiesPanel.highlightable' | translate }}
</mat-checkbox>
<mat-checkbox *ngIf="combinedProperties.underlinable !== undefined"
[checked]="$any(combinedProperties.underlinable)"
(change)="updateModel('underlinable', $event.checked)">
{{'propertiesPanel.underlinable' | translate }}
</mat-checkbox>
<mat-checkbox *ngIf="combinedProperties.strikeOtherOptions !== undefined"
[checked]="$any(combinedProperties.strikeOtherOptions)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment