Skip to content

Commit

Permalink
Cleanup and revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Dec 18, 2023
1 parent da25921 commit 8230a81
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 75 deletions.
1 change: 1 addition & 0 deletions web/app/components/floating-u-i/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class FloatingUIContent extends Component<FloatingUIContentSignat
*/
protected get inElementTarget() {
const dialog = document.querySelector("dialog");

if (dialog) {
return "dialog";
} else {
Expand Down
4 changes: 0 additions & 4 deletions web/app/components/new/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ interface NewFormComponentSignature {
export default class NewFormComponent extends Component<NewFormComponentSignature> {
protected motion = HermesFormResize;

protected get headlineIsShown() {
return !this.args.isModal;
}

protected get taskIsRunningMessageIsShown() {
return this.args.taskIsRunning && !this.args.isModal;
}
Expand Down
13 changes: 5 additions & 8 deletions web/app/components/new/project-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,13 @@ export default class NewProjectFormComponent extends Component<NewProjectFormCom
* Reverted only if an error occurs.
*/
@tracked protected projectIsBeingCreated = false;
@tracked protected jiraSearchIsShowing = false;
@tracked protected jiraSearchQuery = "";
@tracked protected jiraIssue: JiraPickerResult | undefined = undefined;

@tracked protected shownJiraIssues = [];
@tracked protected jiraIssue: JiraPickerResult | undefined = undefined;

@tracked protected title: string = "";
@tracked protected description: string = "";
@tracked protected titleErrorIsShown = false;

private validate() {
this.titleErrorIsShown = this.title.length === 0;
}

/**
* Whether the Jira integration is enabled.
* Determines whether the Jira input is rendered.
Expand Down Expand Up @@ -89,6 +82,10 @@ export default class NewProjectFormComponent extends Component<NewProjectFormCom
}
}

private validate() {
this.titleErrorIsShown = this.title.length === 0;
}

/**
* The action run on title- and description-input keydown.
* If the key is Enter, a form submission is attempted.
Expand Down
32 changes: 0 additions & 32 deletions web/app/components/new/project-form/title-and-description.hbs

This file was deleted.

22 changes: 0 additions & 22 deletions web/app/components/new/project-form/title-and-description.ts

This file was deleted.

5 changes: 4 additions & 1 deletion web/app/components/project/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
class="hds-button hds-button--size-medium hds-button--color-secondary rounded-r-full rounded-l-full border-color-border-strong"
@hasChevron={{true}}
>
<FlightIcon @name={{get-project-status-icon dd.selected}} />
<FlightIcon
@name={{get-project-status-icon dd.selected}}
class="-mr-1"
/>
<span class="status ml-2">
{{this.statusLabel}}
</span>
Expand Down
8 changes: 0 additions & 8 deletions web/app/components/project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ export default class ProjectIndexComponent extends Component<ProjectIndexCompone
return this.statuses[this.status].label;
}

/**
* The icon for the status dropdown.
* Represents the current status of the project.
*/
protected get statusIcon() {
return this.statuses[this.status].icon;
}

/**
* The URL of the project. Used by the CopyURLButton.
*/
Expand Down

0 comments on commit 8230a81

Please sign in to comment.