Browse Source

v1.2.1: contribution disabled on the package page

CrazyDoctor 1 month ago
parent
commit
e1b0585f77
3 changed files with 3 additions and 8 deletions
  1. 1 1
      package.json
  2. 0 5
      src/views/class.pug
  3. 2 2
      static/page/class/script.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "doczilla_js_docs",
-	"version": "1.2.0",
+	"version": "1.2.1",
 	"dependencies": {
 		"@types/sqlite3": "^3.1.11",
 		"@types/ws": "^8.5.10",

+ 0 - 5
src/views/class.pug

@@ -41,14 +41,9 @@ html
 									div.display-mode-button.mode-list(title='Display mode: List', data-display-mode='mode-list')
 							div.tabs
 								div.tab.info(data-tab='Info')= 'Info'
-								if(isEditor)
-									div.tab.contribution(data-tab='Contribution')= 'Contribution history'
 						div.content
 							div.content-tab#info
 								h3.content-tab-title= 'Info'
-							if(isEditor)
-								div.content-tab#contribution
-									h3.content-tab-title= 'Contribution history'
 					else
 						div.right-header.class-not-found
 							div.class-not-found-image

+ 2 - 2
static/page/class/script.js

@@ -258,12 +258,12 @@ class ClassPage {
 			this.renderProperties();
 			this.renderMethods();
 			this.loadInheritedComments();
+			if(isEditor)
+				this.renderContribution();
 		}
 
 		this.renderDocumentedPercentage();
 		this.renderInfo();
-		if(isEditor)
-			this.renderContribution();
 	}
 
 	renderDocumentedPercentage() {