-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from solliancenet/sc-create-agent-ui-mockup
Create agent UI mockup
- Loading branch information
Showing
11 changed files
with
650 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
src/ui/ManagementPortal/components/CreateAgentStepItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<div class="step"> | ||
<div class="step-container"> | ||
<!-- Editing view --> | ||
<div | ||
v-if="editing" | ||
class="step-container__edit" | ||
> | ||
<div class="step-container__edit__inner"> | ||
|
||
<slot name="edit" /> | ||
|
||
<div class="d-flex justify-content-end"> | ||
<Button | ||
class="primary-button mt-2" | ||
label="Done" | ||
@click="editing = false" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div class="step-container__edit__arrow" @click="editing = false"> | ||
<span class="pi pi-arrow-down" style="font-size: 1rem;"></span> | ||
</div> | ||
</div> | ||
|
||
<!-- Default view --> | ||
<div class="step-container__view" @click="editing = true"> | ||
<div class="step-container__view__inner"> | ||
<slot /> | ||
</div> | ||
|
||
<div class="step-container__view__arrow"> | ||
<span class="pi pi-arrow-down" style="font-size: 1rem;"></span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
export default { | ||
name: 'CreateAgentStepItem', | ||
props: ['modelValue'], | ||
emits: ['update:modelValue'], | ||
watch: { | ||
editing() { | ||
this.$emit('update:modelValue', this.editing); | ||
}, | ||
modelValue() { | ||
this.editing = this.modelValue; | ||
} | ||
}, | ||
data() { | ||
return { | ||
editing: false as boolean, | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.