diff options
author | silverwind <me@silverwind.io> | 2020-07-29 20:44:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 14:44:23 -0400 |
commit | 2fd78c151e0e49db113078095f1d9e8c7478e828 (patch) | |
tree | 19526559ed4148f93355786d829c44113cdac27c /routers | |
parent | 2f6aadffa8243736825564cd1ce32d0d5a1eb391 (diff) | |
download | gitea-2fd78c151e0e49db113078095f1d9e8c7478e828.tar.gz gitea-2fd78c151e0e49db113078095f1d9e8c7478e828.zip |
Move jquery-minicolors to npm/webpack (#12305)
* Move jquery-minicolors to npm/webpack
- Unvendor and add as npm dependency
- Removed unneeded backend variable
- Fixed existing bug where picker would previously initizalize to the
same green color when editing a label.
There was probably a version bump because the previous version was
over 3 years old but it seems to be compatible.
* use file-loader
* trailing comma and comment update
* misc tweaks
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/org/setting.go | 1 | ||||
-rw-r--r-- | routers/repo/issue_label.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go index 79a99295a8..454714c7eb 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -202,7 +202,6 @@ func DeleteWebhook(ctx *context.Context) { func Labels(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("repo.labels") ctx.Data["PageIsOrgSettingsLabels"] = true - ctx.Data["RequireMinicolors"] = true ctx.Data["RequireTribute"] = true ctx.Data["LabelTemplates"] = models.LabelTemplates ctx.HTML(200, tplSettingsLabels) diff --git a/routers/repo/issue_label.go b/routers/repo/issue_label.go index 16638404e3..f1e188fe3a 100644 --- a/routers/repo/issue_label.go +++ b/routers/repo/issue_label.go @@ -23,7 +23,6 @@ func Labels(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("repo.labels") ctx.Data["PageIsIssueList"] = true ctx.Data["PageIsLabels"] = true - ctx.Data["RequireMinicolors"] = true ctx.Data["RequireTribute"] = true ctx.Data["LabelTemplates"] = models.LabelTemplates ctx.HTML(200, tplLabels) |