mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 20:22:15 +01:00
Added billable rates; Added project members; Added visibility to projects
This commit is contained in:
@@ -16,6 +16,7 @@ const props = defineProps<{
|
||||
|
||||
const form = useForm({
|
||||
name: props.team.name,
|
||||
currency: props.team.currency,
|
||||
});
|
||||
|
||||
const updateTeamName = () => {
|
||||
@@ -69,6 +70,26 @@ const updateTeamName = () => {
|
||||
|
||||
<InputError :message="form.errors.name" class="mt-2" />
|
||||
</div>
|
||||
|
||||
<!-- Currency -->
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<InputLabel for="currency" value="Currency" />
|
||||
<select
|
||||
name="currency"
|
||||
id="currency"
|
||||
v-model="form.currency"
|
||||
:disabled="!permissions.canUpdateTeam"
|
||||
class="mt-1 block w-full border-input-border bg-input-background text-white focus:border-input-border-active rounded-md shadow-sm">
|
||||
<option value="" disabled>Select a currency</option>
|
||||
<option
|
||||
v-for="(currencyTranslated, currencyKey) in $page.props.currencies"
|
||||
:key="currencyKey"
|
||||
:value="currencyKey">
|
||||
{{ currencyKey }} - {{ currencyTranslated }}
|
||||
</option>
|
||||
</select>
|
||||
<InputError :message="form.errors.currency" class="mt-2" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-if="permissions.canUpdateTeam" #actions>
|
||||
|
||||
@@ -25,6 +25,7 @@ export interface Organization {
|
||||
user_id: string;
|
||||
name: string;
|
||||
personal_team: boolean;
|
||||
currency: string;
|
||||
created_at: string | null;
|
||||
updated_at: string | null;
|
||||
// relations
|
||||
|
||||
Reference in New Issue
Block a user