mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-30 03:17:23 +02:00
fix
This commit is contained in:
parent
4b238930cc
commit
ae570b59cb
@ -808,7 +808,7 @@ func (c *Comment) MetaSpecialDoerTr(locale translation.Locale) template.HTML {
|
||||
case SpecialDoerNameProjectWorkflow:
|
||||
res := locale.Tr("repo.issues.project_workflow")
|
||||
if c.CommentMetaData.ProjectWorkflowID > 0 {
|
||||
res += " <span class=\"muted text black tw-font-semibold\">" + locale.Tr(c.CommentMetaData.ProjectWorkflowEvent.LangKey()) + "</span>"
|
||||
res += ` <span class="text black tw-font-semibold">` + locale.Tr(c.CommentMetaData.ProjectWorkflowEvent.LangKey()) + "</span>"
|
||||
}
|
||||
return res
|
||||
default:
|
||||
@ -838,7 +838,7 @@ func (c *Comment) TimelineRequestedReviewTr(locale translation.Locale, createdSt
|
||||
return locale.Tr("repo.issues.review.add_review_request", teamName, createdStr)
|
||||
}
|
||||
|
||||
func buildCreateCommentMetaData(ctx context.Context, opts *CreateCommentOptions) (commentMetaData *CommentMetaData) {
|
||||
func buildCreateCommentMetaData(opts *CreateCommentOptions) (commentMetaData *CommentMetaData) {
|
||||
makeCommentMetaData := func() {
|
||||
if commentMetaData == nil {
|
||||
commentMetaData = &CommentMetaData{}
|
||||
@ -905,7 +905,7 @@ func CreateComment(ctx context.Context, opts *CreateCommentOptions) (_ *Comment,
|
||||
RefIsPull: opts.RefIsPull,
|
||||
IsForcePush: opts.IsForcePush,
|
||||
Invalidated: opts.Invalidated,
|
||||
CommentMetaData: buildCreateCommentMetaData(ctx, opts),
|
||||
CommentMetaData: buildCreateCommentMetaData(opts),
|
||||
}
|
||||
if err = db.Insert(ctx, comment); err != nil {
|
||||
return nil, err
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{{template "base/head" .}}
|
||||
<div role="main" aria-label="{{.Title}}" class="page-content repository projects projects-view">
|
||||
<div role="main" aria-label="{{.Title}}" class="page-content repository">
|
||||
{{template "repo/header" .}}
|
||||
<div class="ui container padded">
|
||||
<div class="tw-flex tw-justify-between tw-items-center tw-mb-4">
|
||||
|
||||
@ -473,7 +473,7 @@ const persistDraftState = () => {
|
||||
};
|
||||
|
||||
// Initialize Fomantic UI dropdowns for label selection
|
||||
const initLabelDropdowns = async () => {
|
||||
const initLabelDropdowns = () => {
|
||||
await nextTick();
|
||||
const dropdowns = elRoot.value?.querySelectorAll('.ui.dropdown');
|
||||
if (dropdowns) {
|
||||
@ -487,9 +487,9 @@ const initLabelDropdowns = async () => {
|
||||
};
|
||||
|
||||
// Watch for edit mode changes to initialize dropdowns
|
||||
watch(isInEditMode, async (newVal) => {
|
||||
watch(isInEditMode, (newVal) => {
|
||||
if (newVal) {
|
||||
await initLabelDropdowns();
|
||||
initLabelDropdowns();
|
||||
}
|
||||
});
|
||||
|
||||
@ -830,7 +830,7 @@ onUnmounted(() => {
|
||||
|
||||
<div class="field" v-if="hasFilter('labels')">
|
||||
<label>{{ locale.onlyIfHasLabels }}</label>
|
||||
<div v-if="isInEditMode" class="ui fluid multiple search selection dropdown label-dropdown">
|
||||
<div v-if="isInEditMode" class="ui fluid multiple search selection dropdown custom label-dropdown">
|
||||
<input type="hidden" :value="store.workflowFilters.labels.join(',')">
|
||||
<i class="dropdown icon"/>
|
||||
<div class="text" :class="{ default: !store.workflowFilters.labels?.length }">
|
||||
@ -895,7 +895,7 @@ onUnmounted(() => {
|
||||
|
||||
<div class="field" v-if="hasAction('add_labels')">
|
||||
<label>{{ locale.addLabels }}</label>
|
||||
<div v-if="isInEditMode" class="ui fluid multiple search selection dropdown label-dropdown">
|
||||
<div v-if="isInEditMode" class="ui fluid multiple search selection dropdown custom label-dropdown">
|
||||
<input type="hidden" :value="store.workflowActions.addLabels.join(',')">
|
||||
<i class="dropdown icon"/>
|
||||
<div class="text" :class="{ default: !store.workflowActions.addLabels?.length }">
|
||||
@ -937,7 +937,7 @@ onUnmounted(() => {
|
||||
|
||||
<div class="field" v-if="hasAction('remove_labels')">
|
||||
<label>{{ locale.removeLabels }}</label>
|
||||
<div v-if="isInEditMode" class="ui fluid multiple search selection dropdown label-dropdown">
|
||||
<div v-if="isInEditMode" class="ui fluid multiple search selection dropdown custom label-dropdown">
|
||||
<input type="hidden" :value="store.workflowActions.removeLabels.join(',')">
|
||||
<i class="dropdown icon"/>
|
||||
<div class="text" :class="{ default: !store.workflowActions.removeLabels?.length }">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user