mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 11:34:58 +02:00
@@ -19,14 +19,13 @@
|
||||
import Icon from './Icon.svelte'
|
||||
|
||||
export let label: string
|
||||
export let href: string = '#'
|
||||
export let icon: Asset | AnySvelteComponent | undefined = undefined
|
||||
export let disabled: boolean = false
|
||||
export let maxLenght: number = 26
|
||||
|
||||
const trimFilename = (fname: string): string => (fname.length > maxLenght)
|
||||
? fname.substr(0, (maxLenght - 1) / 2) + '...' + fname.substr(-(maxLenght - 1) / 2)
|
||||
: fname
|
||||
? fname.substr(0, (maxLenght - 1) / 2) + '...' + fname.substr(-(maxLenght - 1) / 2)
|
||||
: fname
|
||||
</script>
|
||||
|
||||
<span class="container" class:disabled on:click>
|
||||
@@ -38,7 +37,7 @@
|
||||
{#if disabled}
|
||||
{trimFilename(label)}
|
||||
{:else}
|
||||
<a {href}>{trimFilename(label)}</a>
|
||||
<div class='over-underline'>{trimFilename(label)}</div>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="text-sm">
|
||||
<a href={'#'} on:click={() => inputFile.click()}><Label label={attachment.string.UploadDropFilesHere} /></a>
|
||||
<div class='over-underline' on:click={() => inputFile.click()}><Label label={attachment.string.UploadDropFilesHere} /></div>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
@@ -62,10 +62,10 @@
|
||||
</div>
|
||||
|
||||
<div class="flex-row-center">
|
||||
<a href={'#'} class="flex-row-center" on:click>
|
||||
<div class='over-underline flex-row-center' on:click>
|
||||
<CircleButton icon={IconActivity} size={'small'} primary on:click />
|
||||
<span class="ml-2 text-sm">View activity</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -99,10 +99,10 @@
|
||||
</div>
|
||||
|
||||
<div class="flex-row-center">
|
||||
<a href={'#'} class="flex-row-center" on:click>
|
||||
<div class="over-underline flex-row-center" on:click>
|
||||
<CircleButton icon={IconActivity} size={'small'} primary on:click />
|
||||
<span class="ml-2 text-sm">View activity</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<Label label={inventory.string.NoVariantsForProduct} />
|
||||
</div>
|
||||
<div class="text-sm">
|
||||
<a href={'#'} on:click={create}><Label label={inventory.string.CreateVariant} /></a>
|
||||
<div class='over-underline' on:click={create}><Label label={inventory.string.CreateVariant} /></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<Label label={lead.string.NoLeadsForDocument} />
|
||||
</div>
|
||||
<div class="text-sm">
|
||||
<a href={'#'} on:click={createLead}><Label label={lead.string.CreateLead} /></a>
|
||||
<div class='over-underline' on:click={createLead}><Label label={lead.string.CreateLead} /></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<Label label={recruit.string.NoApplicationsForCandidate} />
|
||||
</div>
|
||||
<div class="text-sm">
|
||||
<a href={'#'} on:click={createApp}><Label label={recruit.string.CreateAnApplication} /></a>
|
||||
<div class='over-underline' on:click={createApp}><Label label={recruit.string.CreateAnApplication} /></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -279,7 +279,6 @@
|
||||
{#if resume.uuid}
|
||||
<Link
|
||||
label={resume.name}
|
||||
href={'#'}
|
||||
icon={FileIcon}
|
||||
maxLenght={16}
|
||||
on:click={() => {
|
||||
@@ -288,11 +287,10 @@
|
||||
/>
|
||||
{:else}
|
||||
{#if loading}
|
||||
<Link label={'Uploading...'} href={'#'} icon={Spinner} disabled />
|
||||
<Link label={'Uploading...'} icon={Spinner} disabled />
|
||||
{:else}
|
||||
<Link
|
||||
label={'Add or drop resume'}
|
||||
href={'#'}
|
||||
icon={FileUpload}
|
||||
on:click={() => {
|
||||
inputFile.click()
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<Label label={task.string.NoTaskForObject} />
|
||||
</div>
|
||||
<div class="text-sm">
|
||||
<a href={'#'} on:click={createApp}><Label label={task.string.CreateTask} /></a>
|
||||
<div class='over-underline' on:click={createApp}><Label label={task.string.CreateTask} /></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
{:else}
|
||||
<div class="flex-col-center mt-5 createapp-container">
|
||||
<div class="text-sm">
|
||||
<a href={'#'} on:click={createApp}><Label label={plugin.string.NoTodoItems} /></a>
|
||||
<div class='over-underline' on:click={createApp}><Label label={plugin.string.NoTodoItems} /></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
<div class="footer">
|
||||
<Button {label} primary {disabled} on:click={click} />
|
||||
{#if requested || secondFactor}
|
||||
<a class="link" href={'#'} on:click={back}><Label label={telegram.string.Back} /></a>
|
||||
<div class="link over-underline" on:click={back}><Label label={telegram.string.Back} /></div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user