mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
changes to structure
This commit is contained in:
18
src/components/app-link/AppLinkElementTemplate.ts
Normal file
18
src/components/app-link/AppLinkElementTemplate.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { html, TemplateResult } from 'core/utils';
|
||||
|
||||
export default ({ disabled, className, title, customAction, to }): TemplateResult =>
|
||||
html`${disabled
|
||||
? html`<a
|
||||
class="btn btn-link btn-disabled${className ? ` ${className}` : ''}"
|
||||
data-target="app-link.main"
|
||||
style="color:grey"
|
||||
><span class="link-text">${title}</span></a
|
||||
>`
|
||||
: html`<a
|
||||
class="btn btn-link${className ? ` ${className}` : ''}"
|
||||
data-target="app-link.main"
|
||||
app-action="click:app-link#goTo ${customAction ? customAction : ''}"
|
||||
href="${to}"
|
||||
style="text-decoration: underline; cursor: pointer;"
|
||||
><span class="link-text">${title}</span></a
|
||||
>`}`;
|
||||
Reference in New Issue
Block a user