-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: public url under admin groups list #7854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/5jAeeX5Ac62gCwFuaP5uKZgKYMmk |
Codecov Report
@@ Coverage Diff @@
## development #7854 +/- ##
===============================================
- Coverage 18.59% 18.55% -0.05%
===============================================
Files 614 614
Lines 7206 7206
Branches 149 149
===============================================
- Hits 1340 1337 -3
- Misses 5839 5842 +3
Partials 27 27
Continue to review full report at Codecov.
|
divyamtayal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation
|
double quotes should be changed to single quotes, too?? |
Yes |
4fa498e to
558d015
Compare
app/models/group.js
Outdated
| import { belongsTo, hasMany } from 'ember-data/relationships'; | ||
| import { computed } from '@ember/object'; | ||
| import { inject as service } from '@ember/service'; | ||
| import attr from "ember-data/attr"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change it to single quote
app/models/group.js
Outdated
| import { inject as service } from "@ember/service"; | ||
|
|
||
| export default class Group extends ModelBase.extend({ | ||
| router: service(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
app/models/group.js
Outdated
| deletedAt : attr('moment'), | ||
| followerCount : attr('number'), | ||
| socialLinks : attr(), | ||
| name: attr("string"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here also
app/models/group.js
Outdated
| roles : hasMany('users-groups-role'), | ||
| follower : belongsTo('user-follow-group', { inverse: 'group' }), | ||
| followers : hasMany('user-follow-group'), | ||
| user: belongsTo("user"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here also
app/models/group.js
Outdated
| return origin + this.router.urlFor('groups.edit.events', this.id); | ||
| }) | ||
| url: computed("identifier", function () { | ||
| const origin = this.fastboot.isFastBoot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here also
| const origin = this.fastboot.isFastBoot | ||
| ? `${this.fastboot.request.protocol}//${this.fastboot.request.host}` | ||
| : location.origin; | ||
| return origin + `/g/${this.id}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@progmatic-99
What I see is that only this line is been modified in this PR. Pls revert other indent changes back to normal.
and pls disable any auto-format extention that might have installed in your code-editor to avoid this small indent issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more readable. I will change other things.
558d015 to
7ab5269
Compare
Fixes #7851