Skip to content

Commit

Permalink
removed thoughts of dirty packages
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiorosa committed Sep 30, 2024
1 parent 37156d9 commit a0098c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
18 changes: 3 additions & 15 deletions client/app/models/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@ export default class ProjectsModel extends Model {

@attr('string') dcpProjectname;

// async save() {
// await this.saveDirtyProject();
// await super.save();
// }

// async saveDirtyProject() {
// if (this.isProjectDirty) {
// this.package.project.save();
// }
// }

// get isProjectDirty() {
// // return this.package.project.hasDirtyAttributes;
// return true;
// }
async submit() {
await super.save();
}
}
11 changes: 0 additions & 11 deletions client/app/validations/submittable-project-form.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import {
validatePresence,
} from 'ember-changeset-validations/validators';
import SaveableProjectForm from './saveable-project-form';


export default {
...SaveableProjectForm,
dcpProjectname: [
...SaveableProjectForm.dcpProjectname,
validatePresence({
presence: true,
message: 'This field is required',
}),
],
};

0 comments on commit a0098c6

Please sign in to comment.