[develop | DONE | CHANGED ] disable links in plugin form. Add a tooltip when disabled
This commit is contained in:
parent
b74dd06c8e
commit
44452ac9ee
|
@ -96,7 +96,7 @@
|
|||
<plugin-wrapper *ngIf="this.templateForm" [pluginTemplate]="selectedTemplate"
|
||||
[plugin]="this.templateForm.getRawValue()"
|
||||
[pluginObject]="this.selectedPlugin.object"
|
||||
class="uk-width-1-1"></plugin-wrapper>
|
||||
class="uk-width-1-1" [previewInAdmin]="true"></plugin-wrapper>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -8,7 +8,7 @@ import {RouterModule} from "@angular/router";
|
|||
imports:[CommonModule, RouterModule],
|
||||
selector: 'plugin-url',
|
||||
template: `
|
||||
|
||||
<span title="{{previewInAdmin?'Note: links are disabled in administration dashboard':''}}">
|
||||
<a *ngIf="url.route"
|
||||
[class]="classAttribute"
|
||||
[routerLink]="url.url" [class.uk-disabled]=previewInAdmin>
|
||||
|
@ -19,6 +19,7 @@ import {RouterModule} from "@angular/router";
|
|||
[target]="url.target" [class.uk-disabled]=previewInAdmin>
|
||||
{{url.linkText}}
|
||||
</a>
|
||||
</span>
|
||||
`,
|
||||
|
||||
standalone :true
|
||||
|
|
Loading…
Reference in New Issue