-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fix260b #262
base: master
Are you sure you want to change the base?
Fix260b #262
Conversation
Add composer.lock and vendor to .gitignore
Restore backups.
nodeView has a corresponting nodeUser for displaying in user mode. Default nodeView and nodeUser to @kvtree/views/xxx. Simplify _user.
flip display mode button, fa-user in admin mode, and fa-user-tie in user mode. Seperate out view mode selection.
Add ehn 260 comment line
This enhancement is mostly working.
I suspect it's a session problem. May need to move the view mode into the parameters. |
Thanks - went quickly through. Let me know when you have the tested/corrected/updated version. |
Will do. I plan on moving the view mode into parameters as it'll be simpler than than the session variable. |
modeView implementation. javascript implementation. actionFlip in NodeController.
@kartik-v Code Complete. I'm testing now. I would like to write up a how-to on adding buttons to the detail screen. How do I get it to you and what format would you like? |
@kartik-v Testing complete. I was able to override both the Admin detail and the User detail. |
Thanks @BillHeaton - I will take this and add some updates over this PR. |
I'm chasing a problem which seems like something not being initialized. Symptom: Switch to another item in the tree view and it displays an endless "Loading" icon. Only manifests when I override 'nodeView' and 'nodeUser'.
The workaround is to press the switch view button which works and the problem resolves itself.
… On Jan 6, 2020, at 8:59 PM, Kartik Visweswaran ***@***.***> wrote:
Thanks @BillHeaton <https://github.com/BillHeaton> - I will take this and add some updates over this PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#262?email_source=notifications&email_token=AAUVA2MEP4URFGJ3CNSVYYDQ4QD2HA5CNFSM4JX2KWV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIHWMXQ#issuecomment-571434590>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAUVA2L2JAIZNVGI3VL5ELLQ4QD2HANCNFSM4JX2KWVQ>.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@kartik-v You was going to do some updates over this PR? |
Hi @BillHeaton -- I had tested this PR initially - but found some tests were failing and then did not get time to dig into that. Have you managed to test the functionality you included? |
I have marking this issue with an |
Tested mostly with only the one issue to track down. What was the problems you were having with testing? Was off working on rebasing a project to pure bootstrap 4 and just finished so can spend some more time on it soon. |
The rendering of node detail was not happening (something broken I suppose on the JS initialization). As I said did not get time to dig in as well. |
Exactly! That's what I plan to chase. It's appears to be an initialization problem.
… On Mar 9, 2020, at 10:15 AM, Kartik Visweswaran ***@***.***> wrote:
The rendering of node detail was not happening (something broken I suppose on the JS initialization). As I said did not get time to dig in as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#262?email_source=notifications&email_token=AAUVA2KEA4SNVGK477PEUXLRGUP2TA5CNFSM4JX2KWV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOIFNZY#issuecomment-596661991>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAUVA2MNNUSZPHVS5SIO3X3RGUP2TANCNFSM4JX2KWVQ>.
|
7aedc3f
to
c7896b5
Compare
Scope
This pull request includes a
Changes
The following changes were made (this change is also documented in the change log):
Separates the
isAdmin
view from the!isAdmin
(i.e. user detail). When inisAdmin
mode a button is present in the detail screen to flip to the other mode.NodeUser
to set the view to use when not inisAdmin
mode defaults to@kvtree/views/_users
. Will need to be added to the docs.isAdmin
mode.renderForm
javascript function to set the url with a default ofactions.manage
._user
viewselectView($out)
TODO
yii:debug
lines when no longer needed.NodeUser
can be overridden.Related Issues
#260