-
Notifications
You must be signed in to change notification settings - Fork 354
feat: managing project versions #4811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
apps/frontend/src/components/ui/create-project-version/MultiStageModal.vue
Outdated
Show resolved
Hide resolved
| const defaultNextButton = { | ||
| icon: RightArrowIcon, | ||
| label: formatMessage(commonMessages.nextButton), | ||
| disabled: false, | ||
| color: 'standard' as const, | ||
| iconPosition: 'after' as const, | ||
| onClick: () => modal.value?.nextStage(), | ||
| } | ||
|
|
||
| const defaultBackButton = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These could be put into the modal itself, e.g if true is passed rather than this btn config, it uses the defaults for that button slot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to sync on how we wanna have the default config for buttons. I want it to be exportable so you can override the defaults like how I have it in this modal, and seems like can't be exported in MultiStageModal nicely, since it uses some of the component's click handlers.
…dependencies work
| (e: 'remove'): void | ||
| }>() | ||
| const { name, icon, dependencyType, versionName } = defineProps<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really use this format for props (e.g usually const props = ...), but honestly its nice - maybe we should start doing it this way a bit more for things like this.
| import type { Labrinth } from '@modrinth/api-client' | ||
| import { createContext } from '@modrinth/ui' | ||
|
|
||
| export const [injectVersionsContext, provideVersionsContext] = createContext<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, it would probably be better to handle this as part of the wider project page context?
No description provided.