mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
Show correct icon & color for GitHub draft PR (#9063)
This commit is contained in:
1 parent
4bb9ac40c7
commit
9274f56ef6
6 files changed
+26
-43
No files matched your search
@@ -45,10 +45,10 @@ export class GitHubUtils {
|
||||
return `${this.url}?install_request=true`;
|
||||
}
|
||||
|
||||
public static getColorForStatus(status: string) {
|
||||
public static getColorForStatus(status: string, isDraftPR: boolean = false) {
|
||||
switch (status) {
|
||||
case "open":
|
||||
return "#238636";
|
||||
return isDraftPR ? "#848d97" : "#238636";
|
||||
case "done":
|
||||
return "#a371f7";
|
||||
case "closed":
|
||||
|
||||
Reference in new issue
Block a user