[develop | DONE | CHANGED ] disable links in plugin form. Add a tooltip when disabled

This commit is contained in:
argirok 2024-11-04 13:20:17 +02:00
parent b74dd06c8e
commit 44452ac9ee
2 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,7 @@
<plugin-wrapper *ngIf="this.templateForm" [pluginTemplate]="selectedTemplate" <plugin-wrapper *ngIf="this.templateForm" [pluginTemplate]="selectedTemplate"
[plugin]="this.templateForm.getRawValue()" [plugin]="this.templateForm.getRawValue()"
[pluginObject]="this.selectedPlugin.object" [pluginObject]="this.selectedPlugin.object"
class="uk-width-1-1"></plugin-wrapper> class="uk-width-1-1" [previewInAdmin]="true"></plugin-wrapper>
</div> </div>
</div> </div>
</div> </div>

View File

@ -8,7 +8,7 @@ import {RouterModule} from "@angular/router";
imports:[CommonModule, RouterModule], imports:[CommonModule, RouterModule],
selector: 'plugin-url', selector: 'plugin-url',
template: ` template: `
<span title="{{previewInAdmin?'Note: links are disabled in administration dashboard':''}}">
<a *ngIf="url.route" <a *ngIf="url.route"
[class]="classAttribute" [class]="classAttribute"
[routerLink]="url.url" [class.uk-disabled]=previewInAdmin> [routerLink]="url.url" [class.uk-disabled]=previewInAdmin>
@ -19,6 +19,7 @@ import {RouterModule} from "@angular/router";
[target]="url.target" [class.uk-disabled]=previewInAdmin> [target]="url.target" [class.uk-disabled]=previewInAdmin>
{{url.linkText}} {{url.linkText}}
</a> </a>
</span>
`, `,
standalone :true standalone :true